import time
import tkinter
from enum import Enum
from tkinter import Tk


class Size(Enum):
    def __str__(self):
        return str(self.value)

    SMALL = '100x100'
    MEDIUM = '300x300'
    LARGE = '500x500'





class cw:
    def __init__(self, title: str = '', size: Size = Size.MEDIUM):
        self._title = title
        self._size = size

    def setSize(self, size: Size):
        self._size = size

    def setTitle(self, title: str):
        self._title = title

    def getSize(self):
        return self._size

    def getTitle(self):
        return self._title

    def createWindow(self):
        root = Tk()
        root.geometry(self._size)
        root.mainloop()

    def destroy(self):
        self.__del__()

    def __del__(self):
        pass


